package com.ff.xyh.common.entity.userfront;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 前端用户表
 * </p>
 *
 * @author ff
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="FrontUser对象", description="前端用户表")
public class FrontUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "用户名 字母加数字 长度不超过20")
    private String username;

    @ApiModelProperty(value = "学号 长度不超过20")
    private String sno;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "11位手机号")
    private String phone;

    @ApiModelProperty(value = "密码, 手机登录时密码可空 长度小于20")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "头像url")
    private String avatar;

    @ApiModelProperty(value = "性别 0 女 1 男 2 第三类")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "家乡")
    private String hometown;

    @ApiModelProperty(value = "个性签名")
    private String signature;

    @ApiModelProperty(value = "0: 正常使用 1: 异常")
    private Integer status;

    @ApiModelProperty(value = "微信通识id 不可重复")
    private String wxOpenid;

    @ApiModelProperty(value = "创建人 对应 access_user表")
    private String creatorId;

    @ApiModelProperty(value = "最后记录的时间（下线时间）")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtLastlog;

    @ApiModelProperty(value = "0: 正常 1: 已删除")
    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
